﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Tetris
{
    [Serializable]
    public class Point
    {
        //coordonates of a Point
        public int posX; //X
        public int posY; //Y

        public Point()
        {
            posX = 0;
            posY = 0;

        }

        /// <summary>
        /// Constructor for Point that set X and Y with the given attributes
        /// </summary>
        /// <param name="X">value of X</param>
        /// <param name="Y">value of Y</param>
        public Point(int X , int Y)
        {
            posX = X;
            posY = Y;
        }

        /// <summary>
        /// Get/set posY
        /// </summary>
        public int Y
        {
            get
            {
                return posY;
            }
            set
            {
                posY = value;
            }
        }

        /// <summary>
        /// Get/set posX
        /// </summary>
        public int X
        {
            get
            {
                return posX;
            }
            set
            {
                posX = value;
            }
        }

    }
}
